//  PULSAR, THE GAME
//  ================================
//  COPYRIGHT(c) 2013 BY KAMIL MRZYGŁÓD
//  CODENOVA.PL

define(['Websockets/WSClient'], function (WSClient) {
    var Engine = function(objEngine) {
        this.Environment = objEngine.Environment;
        this.WS = {};
        this.Version = '1.0.0-a1';
    };

    Engine.prototype = {
        Create: function(objEngine) {
            return new Engine(objEngine);
        },

        Initialize: function() {
            // Connect to WS
            this.WS = WSClient();

            // Configure WS
            this.WS.AttachEvents();
        }
    };

    return Engine.prototype.Create;
});